package cn.smxy.admin.controller;

import cn.smxy.admin.service.RequestLogService;
import cn.smxy.param.PageParam;
import cn.smxy.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private RequestLogService requestLogService;

    @GetMapping("/api")
    public R page(PageParam pageParam){
        return requestLogService.page(pageParam);
    }

}
